#include <iostream>
#include<cmath>
using namespace std;
int main()
{
  double a;
  cin >> a;
  cout << "V -> " << a*a*a <<endl;
  cout << "S -> " << 6*a*a <<endl;
  return 0;
}
